import service from '@/network/request';

export const deletePostList = (data) => {
  return service({
    url: '/post/deletePostList',
    method: 'post',
    data: data,
  })
}

export const getPostList = (data) => {
    return service({
      url: '/post/getPostList',
      method: 'post',
      data: data,
    })
  }

export const updatePost = (data) => {
    return service({
        url: '/post/updatePost',
        method: 'post',
        data
    })
}

export const createPost = (data) => {
    return service({
        url: '/post/createPost',
        method: 'post',
        data
    })
}


export const deleteSubjectList = (data) => {
  return service({
    url: '/post/deleteSubjectList',
    method: 'post',
    data: data,
  })
}

export const getSubjectList = (data) => {
    return service({
      url: '/post/getSubjectList',
      method: 'post',
      data: data,
    })
  }

export const updateSubject = (data) => {
    return service({
        url: '/post/updateSubject',
        method: 'post',
        data
    })
}

export const createSubject = (data) => {
    return service({
        url: '/post/createSubject',
        method: 'post',
        data
    })
}